package br.com.mural.entidades;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@Table(name = "QUESTAO")
@XmlRootElement
public class Questao {
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;
	private String descricao;	
	
	public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
	public String getDescricao() {
		return descricao;
	}
	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}
	public String toString(){
		return this.getDescricao();
	}
	
}
